package com.oreilly.ez.fileserver.repo;


import com.oreilly.ez.fileserver.entity.NoteArticle;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface NoteArticleRepo extends JpaRepository<NoteArticle, String>, JpaSpecificationExecutor<NoteArticle> {

//    @Query("select new NoteArticle(a.sid, a.title, a.ctime, a.cateId) from NoteArticle  a order by a.ctime desc")
//    Page<NoteArticle> findByTitleLike(@Param("title") Specification<NoteArticle> specification, Pageable page);
}
